<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>

	<title>类型主页</title>

</head>
<body>

	<p align="center">
		<h2>类型主页</h2>
		<a href="./add.html">添加页</a>
	</p>
	<table border="1" width="100%">
		<tr>
			<th>编号</th>
			<th>类型名称</th>
			<th>操作</th>
		</tr>
		<?php if(is_array($data["list"])): $i = 0; $__LIST__ = $data["list"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr align="center">
				<td><?php echo ($vo["id"]); ?></td>
				<td><?php echo ($vo["type_name"]); ?></td>
				<td>
					<a href="<?php echo U('edit','id='.$vo['id']);?>">编辑</a>
					<a href="<?php echo U('dels','id='.$vo['id']);?>">删除</a>
				</td>
			</tr><?php endforeach; endif; else: echo "" ;endif; ?>
		<tr>
			<td colspan="9">
			    <?php echo ($data["pageStr"]); ?>
			</td>
		</tr>
	</table>

</body>
</html>